# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=social-analyzer
pkgver=0.45
pkgrel=5
pkgdesc="Analyzing & finding a person's profile across social media websites."
arch=('any')
groups=('blackarch' 'blackarch-social' 'blackarch-recon')
url='https://pypi.org/project/social-analyzer/'
license=('AGPL3')
depends=('python' 'python-beautifulsoup4' 'python-tld' 'python-termcolor'
         'python-langdetect' 'python-requests' 'python-lxml' 'python-galeodes')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/44/46/0b94ae6758dab6b0857c125987690530c5cd2a680a5d565603eca14c45e7/$pkgname-$pkgver.tar.gz")
sha512sums=('ba50cd6df48b38f8a7b7acf21a2a7c6d75c30a2fbc3a77f175ceca119606db05c77efa6f829a663091e8e748db31a85f45329ac14ead3132c1c1ecc9cc064143')

build() {
  cd "$pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

